﻿namespace Sherwood.Content.UpdateServices.Attachments
{
    public static class ExtensionMethods
    {
        public static IAttachment GetOrCreateAttachment(this IAttachmentMeta meta , string referenceId)
        {
            return meta.GetAttachmentById(referenceId) ?? meta.CreateNewAttachment(referenceId);
        }
    }
}